

import 'package:flutter/material.dart';

main() {
  runApp(TextView());
}

class TextView extends StatefulWidget {
  const TextView({Key? key}) : super(key: key);

  @override
  _TextViewState createState() => _TextViewState();
}

class _TextViewState extends State<TextView> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: TextHome(),
      ),
    );
  }
}

class TextHome extends StatefulWidget {
  TextHome({Key? key}) : super(key: key);


  @override
  _TextHomeState createState() => _TextHomeState();
}

class _TextHomeState extends State<TextHome> {



  @override
  Widget build(BuildContext context) {
    return Wrap(

      children: [
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),
        // ElevatedButton(onPressed: () {}, child: Text('我是按钮')), SizedBox(width: 20,),

        Row(
          children: [Text("我是row控件"), Text("我是row2控件"), Text("我是row3控件"), Text("我是row4控件")],
        ),

        Row(
          children: [Text("我是row控件"), Text("我是row2控件"), Text("我是row3控件"), Text("我是row4控件")],
        ),

        Row(
          children: [Text("我是row控件"), Text("我是row2控件"), Text("我是row3控件"), Text("我是row4控件")],
        ),

        Row(
          children: [Text("我是row控件"), Text("我是row2控件"), Text("我是row3控件"), Text("我是row4控件")],
        ),


      ],


    );
  }
}
